package com.syxbbs.forum.services;

import com.syxbbs.forum.model.Article;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public interface IArticleService {
    @Transactional
    void create(Article article);

    List<Article> selectAll();

    List<Article> selectAllByBoardId(Long boardId);

    Article selectDetailById(Long id);

    void modify(Long id ,String title,String content);

    Article selectById(Long id);

    void thumbUpById(Long id);

    void deleteById(Long id);

    //文章回复数量加一
    void addOneReplyCountById(Long id);

    List<Article> selectByUserId(Long userId);



}
